//: [Previous](@previous)

/*:
 ### LeetCode上第344号问题：Reverse String
 ```
 编写一个函数，其作用是将输入的字符串反转过来。
 示例 1:
 
 输入: "hello"
 输出: "olleh"
 示例 2:
 
 输入: "A man, a plan, a canal: Panama"
 输出: "amanaP :lanac a ,nalp a ,nam A"
 ```
 */

let string = "Hello"
let string2 = "A man, a plan, a canal: Panama"

func Solution(_ str: String) -> String {
    return String(str.reversed())
}

print(Solution(string))
print(Solution(string2))

//: [Next](@next)
